<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <ul>
        <li v-for="(stu,index) in stus">{{stu.name}}</li>
    </ul>
    <button @click="changeStu">点我</button>
</div>

<script type="text/javascript" src="../js/vue-2.6.12.js"></script>
<script>
    new Vue({
        el:"#app",
        data:{
            stus:[{id:1,name:"zhangsan"},{id:2,name:"lisi"}]
        },
        methods:{
            changeStu:function(){
                this.stus[1]={id:2,name:"wangwu"}
            }
        }
    });
</script>
</body>
</html>